<html>

	<head>
		<meta charset="utf-8">
		<title>公告详情</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="css/mui.min.css">
		<link rel="stylesheet" href="css/common.css" />	
		<link rel="stylesheet" href="css/common_article.css" />
		<style>
			.mui-bar{
				background-color: rgba(0,153,204,.9);
			}
			.mui-icon{
				color: #FFFFFF;
			}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title" style="color: #FFFFFF;">公告详情</h1>
		</header>
		<div class="mui-content">
			<div class="mui-content-padded" id="task-content">
			</div>
		</div>
	</body>
	<script src="js/mui.min.js"></script>
	<script src="js/mui.zoom.js"></script>
	<script src="js/mui.previewimage.js"></script>
	<script type="text/javascript" src="js/md5.js" ></script>
	<script type="text/javascript" src="js/uuid.js" ></script>
	<script type="text/javascript" src="js/utils.js" ></script>
	<script>
		function getQueryString(name)
		{
		     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
		     var r = window.location.search.substr(1).match(reg);
		     if(r!=null)return  unescape(r[2]); return null;
		}
		var noticeId = 0 ;
		mui.previewImage();
		mui.plusReady(function() {
    		noticeId = getQueryString("noticeId");
			
			//mui.toast()
			xhz.ajax(URL_NOTICE_DETAIL,{'noticeId': noticeId+''},function(data){
				var detail = data.data;
				
				var detailInfo = '<h4 style="text-align: center;">{title}</h4>';
				detailInfo += '<small>来源：{publisher}</small><br />';
				detailInfo += '<small>发布时间：{publishtime}</small><br />';
				detailInfo += '<small>有效时间：{time}</small><br />';
				
				detailInfo = detailInfo.replace('{title}',detail.title);
				detailInfo = detailInfo.replace('{publisher}',detail.cusername);
				detailInfo = detailInfo.replace('{publishtime}',detail.sdate);
				detailInfo = detailInfo.replace('{time}',detail.sdate + "~" + detail.sdate);
				detailInfo += detail.remark ;
				document.getElementById('task-content').innerHTML = detailInfo;
				
			});
		})
	</script>

</html>